package com.jxl.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 可预约时间表
 * </p>
 *
 * @author 金小梁
 * @since 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("available_time_slots")
@ApiModel(value="AvailableTimeSlots对象", description="可预约时间表")
public class AvailableTimeSlots implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "时间段唯一标识")
    @TableId(value = "slot_id", type = IdType.AUTO)
    private Integer slotId;

    @ApiModelProperty(value = "咨询师ID（外键关联咨询师表）")
    private Integer counselorId;

    @ApiModelProperty(value = "时间段开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "时间段结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "是否可预约（0=否，1=是）")
    private Boolean isAvailable;


}
